<template>
  <div>
    <div class="marketCapital" style="height: auto">
      <router-link to="/topSearch"><div>大家都在看 <p><span>{{peopleSee.moduleName}}，{{peopleSee.strName}}{{peopleSee.strCode}}</span>&nbsp;<img src="~assets/images/left.png" alt=""></p></div></router-link>
    </div>
  </div>
</template>

<script>
import remoteDAO from '@/common/remoteDAO'
import constant from '@/common/constant'
export default {
  name: 'market',
  data () {
    return {
      peopleSee: {}
    }
  },
  methods: {
    getOverAllPeopleSee () {
      remoteDAO.invoke(constant.InterfaceEnum.GET_ALL_PEOPLE_SEE, null).then((result) => {
        console.log(result, 'peopleSee')
        this.peopleSee = result
      })
    }
  },
  mounted () {
    this.getOverAllPeopleSee()
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scoped>
  .marketCapital{
    height:1.11rem;
    a{
      text-decoration: none;
      div{
        font-size: 0.16rem;
        margin: 0 auto;
        width:90%;
        height:0.55rem;
        color: #222222;
        font-family: PingFangSC-Regular;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: space-between;
        p{
          height: 100%;
          display: inline-flex;
          align-items: center;
          img{
            height: 0.16rem;
          }
          span{
            font-size: 0.12rem;
            color:#787878;
            font-family: PingFangSC-Regular;
          }
        }
      }
    }
  }
</style>
